<?php
	require_once('jacked_sessions.php');
	if(!checkLogin()){
		$error = "You cannot view this page until you are logged in.";
		include_once('jacked_admin.php');
		exit();
	}
	
	require('jacked_configVars.php');
	require('jacked_configInstalledModules.php');
	
	echo JACKED_HEADING_STRING;
	echo '<h3>installed modules</h3>'. "\n";
	
	foreach($modules as $name => $module){	
		echo '<h4><a href="jacked_manage' . $name . '.php"><img src="' . JACKED_ROOT_PATH . 'images/jacked_' . $name . '.png" title="' . $module['moduleDescription'] . '"/> <br />' . $module['moduleName'] . '</a></h4>' . "\n";
	}
	
	echo '<h4><a href="jacked_managetemplate.php"><img src="' . JACKED_ROOT_PATH . 'images/jacked_template.png" title="Manage template tags and settings."/> <br />Template</a></h4>' . "\n";

	echo '<br />' . "\n";
	echo '<br />' . "\n";
	echo '<h3>get new modules</h3>'. "\n";
	echo '<h4><a href="http://jackedmanager.com/modules" target="_blank">browse all available modules</a></h4>'. "\n";
?>